import { createBrowserRouter } from 'react-router-dom'
import Layout from '../common/Layout.jsx'
import Day from '../views/day.jsx'
import Month from '../views/month.jsx'
import Year from '../views/year.jsx'

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        path: 'month',
        element: <Month />,
      },
      {
        path: 'year',
        element: <Year />,
      },
    ],
  },
  {
    path: 'day',
    element: <Day />,
  },
])

export default router
